const { createProxyMiddleware } = require("http-proxy-middleware");

const URL = process.env.REACT_APP_SERVER_URL;

module.exports = function (app) {
  app.use(
    createProxyMiddleware("/api/front", {
      // target: "http://127.0.0.1:5678/",
      target: URL,
      pathRewrite: { "": "" },
    })
  );
};
